import Vue from 'vue'
import App from './App.vue'

import store from './store'
import router from './router'
import axios from 'axios';
import "@/mock/mockServer"
import 'swiper/css/swiper.css'
Vue.config.productionTip=false

//首页歌手
import Singer from '@/components/singer';
Vue.component('Singer',Singer)
//歌曲列表
import Song_list from './components/Song_list';
Vue.component('song_list',Song_list)
//歌单列表
import special from './components/special_list';
Vue.component('special_list',special)
//专辑列表
import album from './components/album_list'
Vue.component('album_list',album)
//mv列表
import mv from './components/mv_list'
Vue.component('mv_list',mv)
//歌曲播放盒子
import play from './components/musicplay'
Vue.component('play',play)
//mv播放盒子
import mvplay from './components/mvplay'
Vue.component('mvplay',mvplay)

// 图片懒加载
import atm from '@/assets/1.gif'
import VueLazyload from 'vue-lazyload';
// 注册
Vue.use(VueLazyload,{
  loading:atm
})

new Vue({
  router,
  store,
  render: h => h(App),
  beforeCreate(){
    Vue.prototype.$bus=this
  }
}).$mount('#app')
